extends "../cTDZ/cTDZ.gd"
func _info():
	pass

func _connect():
	._connect()
	
func _extInit():
	._extInit()
	chaName = "娜迦海妖"
	camp = "娜迦"
	lv = 1
	attCoe.atkRan = 3
	attCoe.atk = 10 / 8.5 * 2
	attCoe.maxHp = 400 / 112.5
	attAdd.spd += 1.0
	atkEff = "atk_dang"
	skillStrs = []
	aiOn = true
	addSkillTxt("娜迦魔御：开局为全部队友增加<10*娜迦数量>点魔法防御[上限：100点]")

func _onBattleStart():
	._onBattleStart()
	var nagacnt = 0
	var chas = getAllChas(2)
	for i in chas:
		if i.get("camp") == "娜迦":
			nagacnt += 1
	for i in chas:
		i.addBuff(BF.new(nagacnt))

class BF:
	extends Buff
	func _init(lv):
		attInit()
		id = "naga_buff"
		life = 100000
		att.mgiDef = min(100,lv * 10)